<?php
namespace app\api\controller;

use app\model\Items;

class SkuController extends BaseController
{
    public function _initialize()
    {
        parent::_initialize();
    }

    public function getSku(){
        $item_id = $this->request->param('id');
        $goods = Items::get($item_id);
        $shell = 'python /www/wwwroot/liwu.lg14.com/crawler/tbcrawler.py '.$goods->item_id;
        $output = shell_exec($shell);
        $result = $output;
        echo $result;
    }


}